package com.seafwg.controller;

import com.seafwg.domain.Student;
import com.seafwg.service.StudentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author seafwg
 * @Date 2022/3/23 12:45 下午
 * @Version 1.0
 * @description xxx
 */

@RestController
public class StudentController {

    @Resource
    private StudentService studentService;

    @RequestMapping("/findid")
    public Student findStudentById(Integer id) {
        Student student = studentService.findStudentById(id);
        System.out.println(student);
        return student;
    }

}
